import {Component} from 'react';
import './index.less'
class GoodsInfo extends Component{
    render(){
        let {price,otprice,goodsName,stock,sales} = this.props.goodsInfo;
        return(
            <div className='goodsBox'>
                <div className='price'>
                    ￥{price}
                </div>
                <div className='goodsName'>
                {goodsName}
                </div>
                <div className='goodsType'>
                    <div>
                        ￥{otprice}
                    </div>
                    <div>
                        库存:{stock}件
                    </div>
                    <div>
                        销量：{sales}
                    </div>
                </div>
            </div>
        )
    }
}
export default GoodsInfo;